package cn.bgs.serviceedu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 医生表
 * </p>
 *
 * @author YiChen
 * @since 2021-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Doctor对象", description="医生表")
public class Doctor implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "doctor_id", type = IdType.AUTO)
    private Integer doctorId;

    @ApiModelProperty(value = "医生名称")
    private String doctorName;

    @ApiModelProperty(value = "账号")
    private String doctorCode;

    @ApiModelProperty(value = "密码")
    private String passWord;

    @ApiModelProperty(value = "医生类别（0兽医，1农医）")
    private String doctorVariety;

    @ApiModelProperty(value = "擅长主治")
    private String excel;

    @ApiModelProperty(value = "个人简介")
    private String profile;

    @ApiModelProperty(value = "医院")
    private Integer hospitalId;

    @ApiModelProperty(value = "头像")
    private String doctorPto;

    @ApiModelProperty(value = "邮箱")
    private String doctorEmail;

    @TableField(exist = false)
    private String hospitalName;


    @ApiModelProperty(value = "浏览量")
    @TableField("Browse")
    private Integer browse;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifiedTime;

    @ApiModelProperty(value = "逻辑删除ID (0未删除 ,1已删除)")
    @TableLogic(value = "0",delval = "1")
    @TableField(fill = FieldFill.INSERT)
    private Integer deleteFlag;


}
